﻿@model User.Web.Models.Account.RecoveryPasswordModel

@{
    ViewBag.Title = PageTitles.PasswordRecovery;
}

<div class="row">
    <div class="col-md-12">
        @Html.ShowCustomMessage()
    </div>
</div>

@using (Html.BeginForm("RecoverPassword", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    <div class="row">
        <div class="col-md-2">
            &nbsp;
        </div>
        <div class="col-md-8">

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4>@ViewBag.Title</h4>
                    Wenn Ihr euer Passwort vergessen habt, dann tragt hier euren Benutzernamen (Email) ein. Dann erhaltet Ihr eine Email mit einem Link der 24 Stunden gültig ist.
                    Über diesen Link könnt Ihr ein neues Passwort für euren Account angeben.
                </div>

                <div class="panel-body">
                    <div class="form-group">
                        @Html.LabelFor(model => model.Username, new { @class = "col-lg-2 control-label" })
                        <div class="col-lg-10">
                            @Html.EditorFor(model => model.Username)
                            @Html.ValidationMessageFor(model => model.Username)
                        </div>
                    </div>
                </div>
                <div class="panel-footer">
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-10">
                            <input type="submit" class="btn btn-primary" value="@ControlNames.Send" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-2">
            &nbsp;
        </div>
    </div>
}

<hr />

<div class="row">
    <div class="col-md-12">
        @Html.ActionLink(ControlNames.Home, "Index", "Home", null, new { @class = "btn btn-default" })
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
